package com.zhangyusheng.easyecharts.component;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TODO: 功能描述
 *
 * @author Michael zhang
 * @email zhangys_0217@sina.com
 * @since 2025年11月04日
 */
@Data
@Accessors(chain = true)
public class SplitLine  implements Serializable {
    private final static long serialVersionUID = 2L;
    private boolean show;
    private LineStyle lineStyle;

    public static class Builder{
        private boolean show;
        private LineStyle lineStyle;


        public Builder show(boolean show){
            this.show = show;
            return this;
        }
        public Builder lineStyle(LineStyle lineStyle){
            this.lineStyle = lineStyle;
            return this;
        }


        public SplitLine build(){
            return new SplitLine(this);
        }
    }
    private SplitLine(Builder builder){
        this.show = builder.show;
        this.lineStyle = builder.lineStyle;
    }

}